]> dgit.raspbian.org Git - gnome-shell.git/commit
shell/network-agent: Add method to add VPN secrets to agent response
authorSebastian Keller <skeller@gnome.org>
Mon, 14 Dec 2020 15:23:20 +0000 (16:23 +0100)
committerSebastian Keller <skeller@gnome.org>
Fri, 25 Dec 2020 10:43:13 +0000 (11:43 +0100)
commit087bd863b36baeba058cbc9c314dccd3a06e3a67
treef2e64ff168abe20ab68dbab46fbfa4e062f428b0
parentf0deb03bd42478640c211931a2857a4b05631fc0
shell/network-agent: Add method to add VPN secrets to agent response

While most secrets are serialized as individual settings with a string
value, all VPN secrets are serialized together as a string dict which is
the value of a single setting. Incorrect serialization causes VPN
secrets to not be remembered by NetworkManager.

This commit adds a new method that allows adding secrets as VPN secrets
specifically such that they can be correctly serialized.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1535>
src/shell-network-agent.c
src/shell-network-agent.h